<%@page import="com.gxwz.medical.domain.Person"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/admin.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//重新绑定表单提交
		$("#add_btn").bind("click", function() {
			$('form').submit();
		});
	});
	</script>
  </head>
  
  <body>
    <div class="panel admin-panel">
    <div class="panel-head">
				<strong class="icon-reorder">户主信息列表</strong>
			</div>
			<div class="padding border-bottom">
			 <table class="table table-hover text-center">
				<tr>
					<th >序号</th>
					<th>乡镇/村/组</th>
					<th>家庭编号</th>
					<th>农合证号</th>
					<th>个人姓名</th>
					<th>身份证号</th>
					<th>操作</th>
				</tr>
				<%
					String pageNo = request.getParameter("pageNo");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					PersonDao dao = new PersonDao();
					String sql = "select * from t_person where 1=1 ";
					Object[] params = {};
					Page pageBean = dao.queryOjectsByPage(sql, params, p, Constant.ROW);
				%>
				<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {

						Person model = (Person) pageBean.getDatas().get(i);
				%>
				<tr>
				    <td ><%=i+1 %></td>
					<td><%=model.getFamily().getTown().getAreaname()+model.getFamily().getVillage().getAreaname()+model.getFamily().getGroupNo().getAreaname() %></td>
					<td><%=model.getFamily().getFamicode() %></td>
					<td><%=model.getPerscode() %></td>
					<td><%=model.getPersname() %></td>
					<td><%=model.getCardID() %></td>
					<td><div class="button-group"><a class="button border-main"
							href="<%=path%>/system/PaymentSerlvet?m=members&id=<%=model.getPerscode()%>"><span
								class="icon-edit"></span>开始缴费</a>
						</div></td>
					
				</tr>
				<%
					}
				%>
				</table>
			</div>
    </div>
  </body>
</html>
